<?php
include "../config.php";
include "../conexion.php";


$id_paper = $_REQUEST["id_paper"];
$id_autor = $_REQUEST["id_autor"];
$pago = ($_REQUEST["id_pago"]+1)%2;

$sql = "update autor_paper set id_pago = ".$pago." where id_paper = ".$id_paper." and id_autor = ".$id_autor;
echo $sql;
$temp_q_id = $dbh->prepare($sql);
	if (!$temp_q_id) {
		echo "\nPDO::errorInfo():\n";				
	}
$temp_q_id->execute();

?>